<!--滚动图右侧公告及其小菜单
	2017年2月14日12:28:00
-->
<script type="text/javascript">
$.ajax({
	type:"post",
	url:"{:__URL('SHOP_MAIN/components/getlogininfo')}",
	success:function(data){
		var login_info_html='';
		if(data != null && data !=""){
			if(data["user_info"]["nick_name"]!=null && data["user_info"]["nick_name"] != ""){
				if(data["user_info"]["user_headimg"]==""){
					login_info_html+='<div class="login_img"><img src="__TEMP__/{$style}/public/images/temp_default_user_portrait_0.png" alt="默认头像" /></div>';
				}else{
					login_info_html+='<div class="login_img"><img src="__UPLOAD__/'+data["user_info"]["user_headimg"]+'" alt="默认头像" /></div>';
				}
				login_info_html+='<div class="login_message"><p class="message_title">Hi,我是<a href="{:__URL('SHOP_MAIN/member/index')}" class="member_name" title="'+data["user_info"]["nick_name"]+'">'+data["user_info"]["nick_name"]+'</a></p><p class="message_operation"><a href="javascript:logout();">安全退出</a></p></div>';
			}
		}else{
			login_info_html += '<div class="login_img">';
			login_info_html += '<img src="__TEMP__/{$style}/public/images/temp_default_user_portrait_0.png" alt="默认头像" />';
			login_info_html += '</div>';
			login_info_html += '<div class="login-message">';
			login_info_html += '<p class="message-title">Hi,欢迎登录{$title}</p>';
			login_info_html += '<p class="message-operation" style="padding:5px 0;">';
			login_info_html += '<a href="javascript:;" class="login ajax-login">登录</a>';
			login_info_html += '<a href="'+__URL('SHOP_MAIN/login/registerbox')+'" class="register">注册</a>';
			login_info_html += '</p></div>';
		}
		$('.right-login-message').html(login_info_html);
	}
});
</script>
<div class="right-sidebar NS-TEMPLATE-NAV-CONTAINER">
	<!-- 个人信息 -->
	<div class="right-login-message">
		
		<div style="text-align:center;float:none;">
			<img src="__TEMP__/{$style}/public/images/load_login.gif"/>
			<p style="margin-top:10px;">加载中</p>
		</div>

	</div>
	
	<p class="right_title"><span>&nbsp;</span>公告</p>
	<!-- banner右侧公告 _start -->
	<div class="proclamation1">
		<!-- <h3>
			<span> <i></i> 公告
			</span> <a href="{:__URL('SHOP_MAIN/cms/articleClassInfo')}"
				target="_blank"> 更多 <i>&gt;</i>
			</a>
		</h3> -->
		<ul class="mall-news">
			{notempty name="notice"}
			{$notice}
			{/notempty}
		</ul>
	</div>
	<!-- banner右侧公告 _end -->
			
	<p class="right_title" style="display:none;"><span>&nbsp;</span>管理</p>
	<!-- 快捷菜单-->
	<!-- banner右侧快捷菜单 _start -->
	<div class="shortcut-menu" style="display:none;">
		<a href="ADMIN_MAIN" title="登录商家管理中心" class="store-join-btn" target="_blank">登录管理中心</a>
	</div>
	<!-- banner右侧快捷菜单 _end -->
</div>